package liuyuyang.feign;

import liuyuyang.domain.StudentCourse;
import liuyuyang.pojo.Result;
import org.springframework.cloud.openfeign.FeignClient;
import org.springframework.web.bind.annotation.DeleteMapping;
import org.springframework.web.bind.annotation.PathVariable;
import org.springframework.web.bind.annotation.PostMapping;
import org.springframework.web.bind.annotation.RequestBody;

@FeignClient(value = "course-service", path = "/sc")
public interface StudentCourseFeign {
    @PostMapping
    public Result add(@RequestBody StudentCourse studentCourse);

    @DeleteMapping("/{id}")
    public Result<String> del(@PathVariable Integer id);
}
